home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5438 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
  2. From: Dan Pop <danpop@mail.cern.ch>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: RETURN ();
  5. Date: Thu, 8 Feb 1996 23:51:38 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9602082251.AA09989@dxmint.cern.ch>
  8. References: <DMFxxq.7M7@emi.net> <4fc6ve$kbn@s02.pavilion.co.uk>
  9. X-NNTP-Posting-Host: hpl3sn03.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
  12.  
  13. AJRobb@pavilion.co.uk (Andy J Robb) writes:
  14.  
  15. >samstar@emi.net wrote:
  16. >
  17. >>Is there a way to return muliple values to main from a seperate function ?
  18. >
  19. >>ex :
  20. >
  21. >>int main(void)
  22. >
  23. >main(int, char**)    /* This says "ignore the command line" */
  24.  
  25. Nope.  This says: "I don't know the C syntax and I'd better learn C before
  26. posting".  A compiler which accepts the above line in a function definition
  27. is not a C compiler.
  28.  
  29. >>{
  30. >>  Input_data();
  31. >>  printf("Here all the input data");
  32. >>  
  33. >>  return 0;
  34. >>}
  35.  
  36. Dan
  37. -- 
  38. Dan Pop
  39. CERN, CN Division
  40. Email: danpop@mail.cern.ch 
  41. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  42.